<?php
class Mozg_Entity
{
	public static function Get($config = false, $data = null)
	{
		if (!($config instanceof Mozg_Property_Config))
		{
			$config = Mozg_Property_Config::Get($config);
		}

		$entityClass = $config->GetEntityClass();
		return new $entityClass($config, $data, null, $config->GetDefault());
	}
}